<?php

namespace app\np\model;
use app\base\model\Base;

class UsersMessage extends Base
{
    //

    public function message_page($where){
        $files = "a.*";
        $result = $this->alias("a")
            ->field($files)
            ->join("users u","u.id = a.user_id","left")
            ->where($where)
            ->order("a.created_at")
            // ->select(false);
            ->paginate();

        return     $this->trs_pages_join($result);
    }


}
